import {DOCUMENT} from '@/services/api'
import {upload} from '@/utils/request'


/**
 *
 * 文件上传
 * @param formData 表单文件
 * @returns Promise<AxiosResponse>
 */
export async function uploadFile(formData) {
    return upload(DOCUMENT.UPLOAD, formData)
}

/**
 *
 * 文件上传
 * @param formData 表单文件
 * @returns Promise<AxiosResponse>
 */
export async function uploadFiles(formData) {
    return upload(DOCUMENT.UPLOADS, formData)
}
